﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CashShop.Bussiness
{
    /// <summary>
    /// 实现原价打xxx折   CashShop.Bussiness.CashRebate
    /// </summary>
    public class CashRebate: CashSuper 
    {
        private double _moneyRebat = 1.0d;

        public CashRebate(string  moneyRebate)
        {
            this._moneyRebat =double.Parse( moneyRebate);
        }
        public override decimal AcceptCash(decimal money)
        {
            return (decimal)money * (decimal )_moneyRebat;
        }
    }
}
